package com.cy.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 钉钉用户登录验证Token
 */
public class DingTalkUserToken implements AuthenticationToken {

    //钉钉用户ID
    private String dingUserId;

    private Object extras;

    public DingTalkUserToken(String dingUserId) {
        this.dingUserId = dingUserId;
    }

    @Override
    public String getPrincipal() {
        return dingUserId;
    }

    @Override
    public String getCredentials() {
        return dingUserId;
    }

    public Object getExtras() {
        return extras;
    }

    public void setExtras(Object extras) {
        this.extras = extras;
    }
}
